package indi.jp.project.business.device.service;

import indi.jp.project.business.device.entity.Device;
import indi.jp.project.business.device.entity.DevicePurchase;
import indi.jp.project.business.device.entity.dto.DeviceChangeDTO;
import indi.jp.project.business.device.entity.dto.DeviceHistoryDTO;
import indi.jp.project.core.entity.JsonResult;

import java.util.List;

public interface DeviceService {

    JsonResult queryGrid(Device entity) throws Exception;

    JsonResult save(Device entity) throws Exception;

    JsonResult deleteById(String id) throws Exception;

    JsonResult findById(String id) throws Exception;

    void newPurchaseDevice(DevicePurchase devicePurchase) throws Exception;

    void updateDevice(List<DeviceChangeDTO> list) throws Exception;

    void saveDeviceHistory(List<DeviceHistoryDTO> list) throws Exception;

    JsonResult queryHistoryGrid(String deviceId) throws Exception;
}
